home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Messaging / TempSI.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1006 b   |  53 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TempSI.cpp
  3.  
  4.     Contains:    Utility for exception-safe temporary reference to ODSemanticInterface
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    © 1995 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     5/24/96    jpa        1246074: Body not needed w/native exception
  13.                                     TempObj support.
  14.          <1>     6/22/95    jpa        first checked in
  15.  
  16.     Theory Of Operation:
  17.         See the utility TempObj.h.
  18.     
  19.     In Progress:
  20.         
  21. */
  22.  
  23. #ifndef _TEMPSI_
  24. #include "TempSI.h"
  25. #endif
  26.  
  27. #ifndef _USE_TEMPLATES_
  28. #ifndef _NATIVE_EXCEPTIONS_
  29.  
  30.     #ifdef __MWERKS__
  31.         // Make sure 'pragma once' mode is off so the .th files can be included
  32.         // more than once!
  33.         #pragma push
  34.         #pragma once off
  35.     #endif
  36.  
  37.     // Define the non-inline methods of the various template classes:
  38.  
  39.     #define _TMPL_IMPL_
  40.     
  41.     #define _T_        ODSemanticInterface
  42.     #define _C_        TempODSemanticInterface
  43.     #include "TempRef.th"
  44.  
  45.     #undef _TMPL_IMPL_
  46.  
  47.     #ifdef __MWERKS__
  48.         #pragma pop
  49.     #endif
  50.  
  51. #endif /*_NATIVE_EXCEPTIONS_*/
  52. #endif /*_USE_TEMPLATES_*/
  53.